package com.open.api.wechat.pub;

import com.open.api.wechat.common.response.WeChatAccessTokenResponse;
import com.open.api.wechat.pub.request.condition.WeChatTemplateMessageCondition;
import com.open.api.wechat.pub.response.WeChatTemplateMessageResponse;

/**
 * @author : zhaoxuan
 * @version : 1.0
 * @date : 2021/6/25 0:10
 * @description : PubService
 */
public interface WeChatPubService {

    /**
     * @author zhaoxuan
     * @date 2021/6/25 15:08
     * @description 获取accessToken
     * @param
     * @return java.lang.String
     **/
    WeChatAccessTokenResponse getAccessToken();

    /**
     * @author zhaoxuan
     * @date 2021/7/6 11:13
     * @param condition, accessToken
     * @return com.open.api.wechat.pub.response.WeChatTemplateMessageResponse
     * @description 发送模板消息
     **/
    WeChatTemplateMessageResponse sendTemplateMessage(WeChatTemplateMessageCondition condition, String accessToken);
}
